import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false


Vue.directive('focus', {
  //inserted 钩子 会在指令所在元素,被插入到页面中触发
  inserted (el, binding) {
    console.log(el, binding.value)
    el.focus()
  },

});

new Vue({
  render: h => h(App),
}).$mount('#app')
